<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
购物车中的内容为：<br>
  <%
  	ArrayList<String> cart = (ArrayList<String>)session.getAttribute("cart");
  	if(cart != null){
  		for(int i=0;i<cart.size();i++)
  			out.print(cart.get(i)+"<br>");
  	}
  
  %>
</body>
</html>